lib/checkout: Add bareuseronly_dirs option
authorColin Walters <walters@verbum.org>
Tue, 13 Jun 2017 17:26:33 +0000 (13:26 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 13 Jun 2017 20:05:31 +0000 (20:05 +0000)
commit0635fcbfd9d1efa298ffc08a4a8d346e740292fd
tree4232fb7509284886e4d6c58628e0d363e8ed2a5c
parent6ed824bf00cda6943bdc221194d65de9382d79d8
lib/checkout: Add bareuseronly_dirs option

This is a continuation of https://github.com/ostreedev/ostree/pull/926
for directories instead of files.

See: https://github.com/flatpak/flatpak/issues/845

This option suppresses mode bits outside of `0775` for directory
checkouts.  I think most people should start doing this by default,
and use explicit overrides for e.g. `/tmp` if doing a recommit based
on a checkout.

Closes: #927
Approved by: alexlarsson
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-checkout.c
tests/basic-test.sh